package com.lbx.mapper;

import com.lbx.entity.SysRole;
import com.lbx.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lbx create by 2021/6/8 11:20
 * @apiNote SysUserMapper
 */
@Mapper
public interface SysUserMapper {
    SysUser getOneByUsername(@Param("username") String username);
    
    List<SysRole> getRoles(@Param("id") int id);
    
    int insetUser(@Param("username") String username, @Param("password") String password);
}
